<?php 
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller{
	
	function _initialize() {
		//前端统一是否登录
		if(!session('_loginUser_home')){
			$_SESSION['_go'] = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
			redirect(U('Weixin/Auth/index'));
			exit();
		}
		
// 		$users = D('Users')->where(array('uid'=>141))->find();
// 		if(!$users['mobile']){
// 			redirect('/Home/User/bangding/uid/'.$users['uid']);
// 			exit();
// 		}
// 		session('_loginUser_home',$users);
			
	}
	
	
}
?>